package com.tjtt.gwm.service.impl;

import java.util.List;
import java.util.Map;
import com.tjtt.gwm.service.*;
import com.tjtt.gwm.bean.EEPRelations;
import com.tjtt.gwm.bean.EquipmentParts;
import com.tjtt.gwm.bean.TdmEquipment;
import com.tjtt.gwm.dao.*;
import com.tjtt.tdm.base.PageResult;

public class EEPRelationsServiceImpl implements EEPRelationsService{
	private EEPRelationsDao eepRelationsDao;

	public EEPRelationsDao getEepRelationsDao() {
		return eepRelationsDao;
	}

	public void setEepRelationsDao(EEPRelationsDao eepRelationsDao) {
		this.eepRelationsDao = eepRelationsDao;
	}
	
	//查询（通过备件查询设备）
	public PageResult queryReDataByEP(Map filterMap){
		return eepRelationsDao.queryReDataByEP(filterMap);
	}
		
	//新增
	public  void addEEPRelations(EEPRelations relations){
		eepRelationsDao.addEEPRelations(relations);
	}
	
    //删除
	public  void deleteEEPRelations(EEPRelations relations){
		eepRelationsDao.deleteEEPRelations(relations);
	}
	
	//修改
	public void updateEEPRelations(EEPRelations relations){
		eepRelationsDao.updateEEPRelations(relations);
	}
	
	//通过设备id查询设备信息
	public PageResult queryChooseEQUByEquIds(Map filterMap){
		return eepRelationsDao.queryChooseEQUByEquIds(filterMap);
	}
	
	//通过设备id查询设备信息（全）
	public TdmEquipment queryEqu(String id){
		return eepRelationsDao.queryEqu(id);
	}
	
	//通过备件id查询备件信息（全）
	public EquipmentParts queryEPInfo(String id){
		return eepRelationsDao.queryEPInfo(id);
	}
	
	//根据备件id查询关系ids
	public String queryRIdsByEP(String epId){
		return eepRelationsDao.queryRIdsByEP(epId);
	}
	
	//根据备件id查询关系表某条数据
	public EEPRelations queryRById(String rId){
		return eepRelationsDao.queryRById(rId);
	}
	

}
